
/// Map
extension ExMap<E> on Map<dynamic, dynamic>? {

  /// Map 空安全取值
  Map<dynamic, dynamic> get ex => this ?? {};

  /// 设置值并返回map
  Map<String, dynamic> keyValue(dynamic key, dynamic value) {
    Map<String, dynamic> map = Map<String, dynamic>.from(ex);
    map[key] = value;
    return map;
  }

}

